package com.pinapel.aixml.ui;


import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import java.awt.Color;

import com.pinapel.aixml.controller.IArbolesController;

import com.pinapel.aixml.tools.i18n.I18n;


public class ArbolesUI extends JTabbedPane {
	private JScrollPane mXmlTree;
	private JScrollPane mXsdTree;
		
	private IArbolesController mController;


	public ArbolesUI() {

		this.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(Color.TRANSLUCENT)));

		
		mXmlTree = new ArbolUIXML();
		mXsdTree = new ArbolUIXSD();
		
		
	
		this.addTab(I18n.getString(I18n.UI054_XML_Tree), mXmlTree);
		this.addTab(I18n.getString(I18n.UI055_XSD_Tree), mXsdTree);
		
		

	}

	public IArbolesController getController() {
		return mController;
	}
	
	public void setController(IArbolesController mController) {
		this.mController = mController;
	}
	
	public ArbolUI getXmlTree() {
		return (ArbolUI) mXmlTree;
	}

	public ArbolUI getXsdTree() {
		return (ArbolUI) mXsdTree;
	}

	
}
